package com.chu.bean;

import javax.persistence.*;

@Entity
public class Wife {
    @Id
    private Integer wifeid;
    @Column
    private String wifename;

    @OneToOne
    @JoinColumn(name = "hid")
    private Husband husband;

    public Integer getWifeid() {
        return wifeid;
    }

    public void setWifeid(Integer wifeid) {
        this.wifeid = wifeid;
    }

    public String getWifename() {
        return wifename;
    }

    public void setWifename(String wifename) {
        this.wifename = wifename;
    }



    public Husband getHusband() {
        return husband;
    }

    public void setHusband(Husband husband) {
        this.husband = husband;
    }
}
